﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Collections;
using System.Text;
using Models;

namespace IDAL
{
    public interface IWorksInfo
    {
        List<WorksInfo> GetAllWorksInfo(int pagesize, int nowpage);
        List<WorksInfo> GetCategoryWorksInfo(int CategoryID, int pagesize, int nowpage);
        List<WorksInfo> GetOneWorksInfo(int WorksID);
        string GetWorksFirstPic(int WorksID);
        //WorksPicInfo GetWorksFirstPicInfo(int WorksID);
        int GetPageCount(int pagesize,int CategoryID);
        ArrayList GetPreWorksInfo(int nowWorksID,int categoryID);
        ArrayList GetNextWorksInfo(int nowWorksID,int categoryID);
        int CountAddWorkInfo(int WorksID);
        int AddWorksInfo(WorksInfo work);
        int GetMaxID();
        WorksInfo GetWorksInfo(int WorksID);
        int UpdateWorksInfo(WorksInfo work);
        int DeleteWorksInfo(int WorksID);

    }
}
